<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>oauth2-client-login-js-github</title>
</head>
<body>
<p>
    <button onclick="handleLoginGithub()">使用Github登录</button>
</p>
</body>
<script>
    //触发github登录
    function handleLoginGithub() {
        window.location.href = "https://github.com/login/oauth/authorize" +
            "?client_id=ac03a9fdeeb9e40329eb" +
            "&redirect_uri=http://localhost:8080" +
            "&scope=" +
            "&state=" +
            "&allow_signup=" +
            "&login="
    }
</script>
</html>